package de.westranger.forex.trading;

import de.westranger.forex.trading.genetic.allel.mutation.MutationType;

public final class GlobalConfig {
	public static final int SEED								= 179424673;
	public static final int POPULATION							= 100000;
	public static final int INITIAL_MAX_DEPTH					= 3;
	public static final int GENERATION_NO_IMPROVEMENT			= 10;
	public static final int MAX_GENERATION						= 500;
	public static double MUTATION_RATE							= 1.0/5.0; // 1.0/20.0  this specifies the exponential decay constant like in http://en.wikipedia.org/wiki/Exponential_decay
	public static MutationType MUTATION_TYPE					= MutationType.SimpleTypeSwitch;

	public static final int NUM_THREADS							= Runtime.getRuntime().availableProcessors()-1;
	public static final int TASKS_PER_THREAD 					= 2;

	public static final double OPERATOR_SELECTION_PROBABILITY	= 0.9;
	@Deprecated
	public static final int TREND_SCALE							= 4;

	public static final int TRADING_START_HOUR					= 0;
	public static final int TRADING_END_HOUR					= 24;

	public static final double MONEY							= 100000.0;
	public static final double MONEY_INVEST						= 0.1;
	public static final int STOPLOSS							= 50;	// pip
	public static final int TAKE_PROFIT							= 100;	// pip
	public static final double LEVERAGE							= 1.0;
	public static final double OANDA_LOT_SIZE					= 100000.0;
}